package com.sun.sangeng.stream;

import java.util.Comparator;

public class MyComparator implements Comparator<Author> {
    @Override
    public int compare(Author o1, Author o2) {
        return o1.getAge() - o2.getAge();
    }
}
